import type { VbenFormSchema } from '#/adapter/form';

/**
 * 获取编辑表单的字段配置。
 */
export function useSchema(): VbenFormSchema[] {
  return [
    {
      component: 'Input',
      disabled: true,
      fieldName: 'subjectName',
      label: '点检项',
    },
    {
      component: 'InputNumber',
      fieldName: 'value',
      label: '点检数据',
      help: '没有数据不用填写',
    },
    {
      component: 'Textarea',
      componentProps: {
        allowClear: true,
        rows: 4,
        showCount: true,
        maxlength: 128,
      },
      fieldName: 'remark',
      label: '备注',
    },
  ];
}
